package com.ruoyi.ymapp.user.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户信息管理对象 ym_user
 *
 * @author Lu.F
 * @date 2022-11-07
 */
public class YmUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id，自增 */
    private Long id;

    /** 用户姓名，可重复 */
    @Excel(name = "用户姓名，可重复")
    private String uname;

    /** 需要加密 */
    @Excel(name = "需要加密")
    private String upwd;

    /** 手机号，唯一，根据手机号密码进行登录 */
    @Excel(name = "手机号，唯一，根据手机号密码进行登录")
    private String utell;

    /** 1:可用    0：禁用 */
    @Excel(name = "1:可用    0：禁用")
    private Integer ustate;

    /** 会员积分，达到多少，切换会员等级 */
    @Excel(name = "会员积分，达到多少，切换会员等级")
    private Long uintegral;

    /** 用户角色：普通会员、黄金会员、铂金会员等 */
    @Excel(name = "用户角色：普通会员、黄金会员、铂金会员等")
    private String urole;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUname(String uname)
    {
        this.uname = uname;
    }

    public String getUname()
    {
        return uname;
    }
    public void setUpwd(String upwd)
    {
        this.upwd = upwd;
    }

    public String getUpwd()
    {
        return upwd;
    }
    public void setUtell(String utell)
    {
        this.utell = utell;
    }

    public String getUtell()
    {
        return utell;
    }
    public void setUstate(Integer ustate)
    {
        this.ustate = ustate;
    }

    public Integer getUstate()
    {
        return ustate;
    }
    public void setUintegral(Long uintegral)
    {
        this.uintegral = uintegral;
    }

    public Long getUintegral()
    {
        return uintegral;
    }
    public void setUrole(String urole)
    {
        this.urole = urole;
    }

    public String getUrole()
    {
        return urole;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("uname", getUname())
                .append("upwd", getUpwd())
                .append("utell", getUtell())
                .append("ustate", getUstate())
                .append("uintegral", getUintegral())
                .append("urole", getUrole())
                .toString();
    }
}

